<script setup lang="ts">
import {constantRoute} from "@/router/routes.ts"
</script>

<template>
  <!--   导航-->
  <nav>
    <router-link
        v-for="route in constantRoute[0].children"
        :to="route.path"
    >
      {{ route.meta.title }}
    </router-link>
  </nav>

  <!-- 路由出口 -->
  <router-view></router-view>
</template>

<style scoped>
nav{
  display: flex;
  a{
    margin-right: 20px;
  }
}
</style>
